#define _CRT_SECURE_NO_WARNINGS 1
#include <iostream>
#include <string>
#include <unordered_map>
#include <algorithm>
using namespace std;
class A
{
public:
    bool operator()(vector<int> x, vector<int> y)
    {
        return x[0] < y[0];
    }
};
class Solution {
public:

    bool hostschedule(vector<vector<int> >& schedule)
    {
        sort(schedule.begin(), schedule.end(), A());
        // for(auto& a:schedule)
        // {
        //     cout<<a[0]<<"->"<<a[1]<<endl;
        // }
        for (int i = 1;i < schedule.size();i++)
        {
            if (schedule[i][0] == schedule[i - 1][0]) return false;
            if (schedule[i][0] < schedule[i - 1][1]) return false;
        }
        return true;
    }
};